#include<iostream>
#include<string>
#include<cctype>
using namespace std;
int main()
{
	string s;string s2;int count = 0;
	while (cin >> s)
	{
		int n = s.size();

		for (int i = 0; i < n; i++)
		{
			if (i == 0 )
			{
				if (count == 1)cout << " ";
				char ch = toupper(s[0]);
				cout<< ch;
			}
			else cout << s[i];
		}
		count =1 ;
	}
	return 0;
}